<script setup>
 function onDragStart(e){
   // e.preventDefault()
   e.dataTransfer.setData("id",  'fuel');

 }
</script>

<template>
  <div class="nuclear-core-content">
    <div style="width: 40px;height: 40px;background: #747bff;border-radius: 5px" draggable="true" @dragstart="onDragStart"></div>
  </div>
</template>

<style scoped>
.nuclear-core-content{
  display: flex;
  width: 200px;
  height: 500px;
  border: 1px solid black;
  padding: 5px;
}
</style>